from django.forms import ModelForm
#from django.contrib.auth.models import User
from bank.app.models import Payment, Card
from django.forms.widgets import TextInput

class TransferForm(ModelForm):
    class Meta:
        model = Payment
        fields = ('from_account', 'to_account', 'amount')
        
class PaymentForm(ModelForm):
    class Meta:
        model=Payment
        widgets={
            'to_account':TextInput(),
            }


